package com.java.cloud.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单表
 * 
 * @author jl
 * @since 2020-03-13 11:25:16
 */
@Data
@TableName("t_order")
public class Order implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 产品id
	 */
	private Long productId;
	/**
	 * 数量
	 */
	private Integer count;
	/**
	 * 金额
	 */
	private BigDecimal money;
	/**
	 * 订单状态:  0:创建中 1:已完结
	 */
	private Integer status;

}
